﻿@model MaguenBrokersMVC.Models.SeguroVida

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>SeguroVida</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Apellido)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Apellido)
            @Html.ValidationMessageFor(model => model.Apellido)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FechaNacimiento)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaNacimiento)
            @Html.ValidationMessageFor(model => model.FechaNacimiento)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EstadoCivil)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EstadoCivil)
            @Html.ValidationMessageFor(model => model.EstadoCivil)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HijosMenores)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HijosMenores)
            @Html.ValidationMessageFor(model => model.HijosMenores)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Profesion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Profesion)
            @Html.ValidationMessageFor(model => model.Profesion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TipoSeguroId, "TipoSeguro")
        </div>
        <div class="editor-field">
            @Html.DropDownList("TipoSeguroId", String.Empty)
            @Html.ValidationMessageFor(model => model.TipoSeguroId)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
